<?php
# idxCMS Flat Files Content Management System v5.0
# Copyright (c) 2011-2016 Victor Nabatov greenray.spb@gmail.com
# Template for sections

die();?>

<div class="section">
    <ul class="level2">
    <!-- FOREACH $sections -->
        <li class="level2">
            <a class="level2" href="$sections.link">
                <span class="title">$sections.title</span>
            <!-- IF !empty($sections.desc) -->
                <span class="subtitle">$sections.desc</span>
            <!-- END -->
            </a>
            <!-- IF !empty($sections.categories) -->
                <ul class="level3">
                <!-- FOREACH $section.categories -->
                    <li class="level3">
                        <img src="[$categories.path]icon.png" width="35" height="35" alt="IMAGE" />
                        <a class="level3" href="$categories.link">
                            <span class="title">$categories.title</span>
                        <!-- IF !empty($categories.desc) -->
                            <span class="subtitle">$categories.desc</span>
                        <!-- END -->
                        </a>
                    </li>
                <!-- END -->
                </ul>
            <!-- END -->
        </li>
    <!-- END -->
    </ul>
</div>
